<?php
include '/var/www/html/new/d/class/Terminal_Check_Socket.class.php';
$Inside= new SoapClient(null,array(
		"location" => "http://localhost/open/openService/pft_insideMX.php",
		"uri" => "www.16u.com?ac_16u=16ucom|pw_16u=c33367701511b4f6020ec61ded352059|auth_16u=true")
);
if (!class_exists("go_sql")){
	include("/var/www/html/new/conf/le.je");
	$le=new go_sql();
	$le->connect();
}
$a = file_get_contents('/var/www/html/open/openService/pftMX.php');
echo $a;exit;
/* $order = array('2836645');
foreach($order as $k){
	$aaa = new Terminal_Check_Socket();
	$xmlChildOrders = $Inside->Order_Globle_Search(
									"","","","","",
									"","","","","",
									"","",$k,"","",
									"","","",1,1,
									0,9999,"","","",
									"","","","","",
									"",0,0
								);
		
	$xmlChildOrderss = simplexml_load_string($xmlChildOrders);
	$UUcode  = (string)$xmlChildOrderss->Rec->UUcode;	
	$UUsalerid  = (string)$xmlChildOrderss->Rec->UUsalerid;	
	$UUlid  = (int)$xmlChildOrderss->Rec->UUlid;	
	$UUstatus  = (int)$xmlChildOrderss->Rec->UUstatus;	
	$chkIns = 499;
	if($UUstatus == 2) $chkIns = 499;
	$sel = "select terminal from uu_land  where id=$UUlid limit 1";
	$GLOBALS['le']->query($sel);
	$GLOBALS['le']->fetch_assoc();
	$terminal = $GLOBALS['le']->f('terminal');
	
	$submit = $aaa->Terminal_Check_In_Voucher($terminal,$UUsalerid,$UUcode,array("vMode"=>3,"vCmd"=>$chkIns));
	print_r($submit);
	echo "<br/>";
}
die(); */
$oder = array('2823057','2823048','2822982','2822973','2821050','2821407','2822920','2822897','2822822','2822173','2822684','2822699','2822700','2822638','2821166','2821160','2821338','2821237','2822182','2822286','2821161','2822463','2822507','2822496','2820490','2820497','2820501','2822455','2822439','2821532','2822148','2821594','2819487','2822386','2816801','2817554','2811461','2822215','2821787','2800320','2822169','2822153','2822247','2822225','2821143','2821140','2822185','2820443','2822134','2822120','2822110','2817920','2822088','2822084','2822085','2822003','2820393','2821497','2821763','2821904','2817430','2821830','2821637','2821174','2818289','2821709','2743869','2821239','2821731','2821682','2821794','2820084','2819355','2821177','2821493','2820232','2821752','2821745','2821306','2821715','2820617','2820611','2821639','2821703','2815805','2815804','2821619','2820388','2816523','2815502','2821460','2819472','2820935','2820937','2821330','2820526','2821348','2816444','2812685','2812684','2819383','2821327','2821279','2821105','2821094','2821090','2819059','2821442','2821450','2819404','2817808','2821372','2821391','2821386','2698394','2815972','2821368','2816990','2820976','2820974','2732367','2819197','2821188','2823168','2820254','2822254','2823055','2823095','2822689','2822375','2820557','2797055','2818625','2818086','2818085','2818084','2818083','2794927','2811842','2814815','2814814','2816649','2816648','2816647','2823374','2823373','2823372','2823371','2821928','2821927','2823076','2823462','2823287','2823286','2823285','2823284','2823379','2823378','2823212','2823314','2823313','2820316','2820315','2820314','2820313','2822902','2822895','2822601','2822600','2820447','2820441','2797481','2821297','2821296','2820322','2820321','2819824','2819823','2819822','2819747','2822589','2822588','2822587','2822586');
/* foreach($oder as $k){
	$submit =  $Inside->Order_Globle_Search(
		"","","","","",
		"","","","","",
		"","",$k,"","",
		"","","",1,1,
		0,9999,"","","",
		"","","","","",
		"",0,0
	);
	$submit = simplexml_load_string($submit);
	// if((int)$submit->Rec->UUstatus == 0){
		print_r($k.'->'.(int)$submit->Rec->UUstatus);
		echo "<br/>";
	// }
}

exit; */
/* 
$sss = mt_rand(8,8);
switch($sss){
	case 1:
		$submit = $Inside->Order_Change_Pro("2704796",0,0,0,0,"","","");
		print_r($submit);
	break;
	case 2:
		$submit = $Inside->Group_Order_Submit('113','11276','23355','2015-10-15 00:00:00','2015-10-18 23:07:50','400','1',0,'测试pzp','15959110796','','617993','113',3,0,'','','',0,0,0);
		print_r($submit);
	break;
	case 3:
		$submit = $Inside->Dynamic_Price_And_Storage(100019,20443,'2014-10-19',1,1,1,113,0);
		echo $submit;exit;
		// $a = simplexml_load_string($submit);
		// print_r((string)$a->Rec->UUsprice);
	break;
	case 4:
		$submit= $Inside->PFT_Member_Fund_Modify("113","113","400",0,2,113,11,3,"2696587");
		print_r($submit);
	break;
	case 5:
		$submit = $Inside->Code_Verify_Order('863084','627556','');
		print_r($submit);
	break;
	case 6:
		$submit =  $Inside->Order_Globle_Search(
			"","","","","",
			"","","","","",
			"","","2696587","","",
			"","","",1,1,
			0,9999,"","","",
			"","","","","",
			"",0,0
		);
		print_r($submit);
	break;
	case 7:
		$submit = $Inside->Send_SMS_V('15959110796','凭证号：123456，您已成功购买了123456，消费日期：11月13日，过期失效，123456:123456，此为凭证，请妥善保管。详情及二维码:233333',-1,'fzpft');
		print_r($submit);
	break;
	
	case 8:
		$submit = $Inside->reSend_SMS_Global_PL(
			"2761463",				// 主订单订单号
			38783,					// 供应商ID
			56389,					// 分销商ID
			""
		);
		print_r($submit);
	break;
	default:
	break;
	
} */
//取消订单
// $submit = $Inside->Order_Change_Pro("2393893",0,0,0,0,"","",""); 


//下单
// $submit = $Inside->Group_Order_Submit('113','11276','23355','2015-10-15 00:00:00','2015-10-18 23:07:50','400','1',0,'测试pzp','15959110796','','617993','113',3,0,'','','',0,0,0);  //下单


//查询价格
// $submit = $Inside->Dynamic_Price_And_Storage(100019,20443,'2015-10-19',1,0,1,113,0);  //第5个参数，0-供货价 1-零售价


//资金修改
// $submit= $Inside->PFT_Member_Fund_Modify("113","113","400",0,2,113,11,3,"2696587");


//查看凭证码 
// $submit = $Inside->Code_Verify_Order('617993','170074','');

//查询订单
// $submit =  $Inside->Order_Globle_Search(
		// "","","","","",
		// "","","","","",
		// "","","2696587","","",
		// "","","",1,1,
		// 0,9999,"","","",
		// "","","","","",
		// "",0,0
// );


// 发短信
// $submit = $Inside->Send_SMS_V('15959110796','凭证号：123456，您已成功购买了123456，消费日期：11月13日，过期失效，123456:123456，此为凭证，请妥善保管。详情及二维码:233333',-1,'fzpft');

// print_r($submit);exit;
// exit;

//取消
// $submit = $Inside->Order_Change_Pro("1613685",0,0,0,0,"","","",17);  //末尾加17，绕过所有套票判断

//查询价格
// $submit = $Inside->get_Dynamic_Price_Merge(
			// 16959,'2015-08-31',1,'','',1,0);  //供货价
			
// $submit = simplexml_load_string($submit);
// 1626048
// $submit = $Inside->Remote_Ordernum_Update(
							// serialize(array('16557547'=>'0730001'))
						// );
// echo $submit;
// exit;
// $submit= $Inside->PFT_Member_Fund_Modify("40096","40096","52500",0,2,"36624",11,3,"1284019");
// $submit = $Inside->Code_Verify_Order('863084', '386945','');
// $submit = $Inside->Terminal_Check_In('861837', '321280','2015-07-25 19:33:39', '');
// print_r($submit);
// exit;
// $submit = $aaa->Terminal_Query_Order_Voucher('9218','863084','785524');
// print_r($submit);exit; 
// $array = array('2356018');
// foreach($array as $k){
	// $xmlChildOrders = $Inside->Order_Globle_Search(
								// "","","","","",
								// "","","","","",
								// "","",$k,"","",
								// "","","",1,1,
								// 0,9999,"","","",
								// "","","","","",
								// "",0,0
							// );
	
	// $xmlChildOrderss = simplexml_load_string($xmlChildOrders);
	// $UUcode  = (string)$xmlChildOrderss->Rec->UUcode;	
	// $UUsalerid  = (string)$xmlChildOrderss->Rec->UUsalerid;	
	// $chkIns = 499;
	// if((string)$xmlChildOrderss->Rec->UUstatus==2) $chkIns = 498;
	// $submit = $aaa->Terminal_Check_In_Voucher('5085',$UUsalerid,$UUcode,array("vMode"=>3,"vCmd"=>$chkIns));
	// print_r($submit);
// }
// $submit =$Inside->PFT_Order_Code("7517","726473",-1,5322);
// print_r($Inside->Send_SMS_V('15959110796','凭证号：123456，您已成功购买了123456，消费日期：11月13日，过期失效，123456:123456，此为凭证，请妥善保管。详情及二维码:233333',-1,'hpwlyzl')); 

?>r_Code("7517","726473",-1,5322);
// print_r($Inside->Send_SMS_V('15959110796','凭证号：123456，您已成功购买了123456，消费日期：11月13日，过期失效，123456:123456，此为凭证，请妥善保管。详情及二维码:233333',-1,'hpwlyzl')); 

?>